import request from "@/utils/request";

// 请求首页第一个列表假数据
export function getRecipeList1Api() {
    return request.get('/api/recipe/RecipeList1');
}
// fen页查询
export function getfyRecipeApi(data) {
    return request.get('/api/recipe/fyRecipe',data);
}
// 查询所有搜索caipu
export function getSearchRecipe(data) {
  return request.get('/api/recipe/searchRecipe',data);
}

// 请求添加收藏
export function addCollectApi(data) {
    return request.post('/api/recipe/addCollect',data);
}
// 请求取消收藏
export function deleteCollectApi(data) {
  return request.delete('/api/recipe/deleteCollect',data);
}
// 首页总菜谱假数据测试用
export function getRecipeListApi() {
  return request.get('/api/recipe/zRecipe');
}

// 查询所有用户
export function getAllUser() {
  return request.get('/api/recipe/AllUser');
}


// 查询所有搜索用户
export function getSearchUser(data) {
  return request.get('/api/recipe/searchUser',data);
}
